rtparagraphs
Command/ startparallel
Command/ startplacefloat
Command/ startplacepairedbox
Command/ startsection
Command/ startsectionblock
Command/ startstartstop
Command/ startstop
Command/ startstyle
Command/ starttabulate
Command/ starttextbackground
Command/ starttyping
Command/ startviewerlayer
\framed{Foo}
\stopframedtext
\starttextbackground
\framed{Foo}
\stoptextbackground
\stoptext
How do it get the same spacing as in the framedtext case?
Is there a solution to this? Or an explanation why the spacing
differs?
these are fundamentally different mechanisms .. you can play
> \starttext
> \startframedtext
> \framed{Foo}
> \stopframedtext
> \starttextbackground
> \framed{Foo}
> \stoptextbackground
> \stoptext
>
> How do it get the same spacing as in the framedtext case
nothing
%% depthcorrection=off, %% does nothing
%% topoffset=3mm,%% works, but only for positive values
background=,
frame=on]
\starttext
\startframedtext
\framed{Foo}
\stopframedtext
\starttextbackground
\framed{Foo}
\stoptextbackground
\stoptext
How do
=mpos:par:myexample,
location=paragraph,
topoffset=0.4em,
leftoffset=0em,
rulethickness=0.7pt]
\definetyping[Listing]
[option=commands]
\setuptyping
[Listing]
[bodyfont=10pt,
margin=1em,
before=%
{\blank[3*medium]
\setupinterlinespace[line=2.4ex]
\starttextbackground
]
Change the alignment value for your Listing's.
\setuptyping
[Listing]
[bodyfont=10pt,
margin=1em,
align={flushleft,verytolerant},
before=%
{\blank[3*medium]
\setupinterlinespace[line=2.4ex]
\starttextbackground[listingbackground]},
after=%
{\stoptextbackground
\blank
]
[bodyfont=10pt,
margin=1em,
before=%
{\blank[3*medium]
\setupinterlinespace[line=2.4ex]
\starttextbackground[listingbackground]},
after=%
{\stoptextbackground
\blank[4*medium]}]
\protect
\starttext
\startListing
test test test test test test test test test test test
,
after={\hrule}
]
\defineenumeration
[example]
[
text=Example,
headalign=middle,
headcolor=white,
headcommand={\inframed[background=color,backgroundcolor=darkgreen,width=\textwidth]},
number=no,
before={%
\starttextbackground[textFrameEx]
},
after
ve between \starttextbackground[exampleFrame] and
\starttextbackground[exampleFrame] also a figure in addition to text
paragraphs. Would it be possible to also draw a rule next to it?
Best regards,
Alex
___
If you
not seem to work
\setupcolors[state=start]
\setupcolor[xwi]
\definetextbackground
[Code]
[frame=on,
framecolor=black,
%corner=0,
%offset=10pt,
background=color,
backgroundcolor=gray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code
]
\definetextbackground
[Code]
[frame=on,
framecolor=black,
%corner=0,
%offset=10pt,
background=color,
backgroundcolor=gray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code]},
after={\stoptextbackground\blank}]
\starttext
\starttyping
=on,
framecolor=black,
%corner=0,
%offset=10pt,
background=color,
backgroundcolor=gray,
location=paragraph]
\setuptyping
[before={\blank\starttextbackground[Code]},
after={\stoptextbackground\blank}]
\starttext
\starttyping
example
\stoptyping
\stoptext
On 6/25/2021 8:33 AM, Christoph Reller wrote:
Hi,
Consider the MWE:
\definetextbackground[background][
background=color,
backgroundcolor=gray]
\starttext
\starttextbackground[background]
Test
\stoptextbackground
\stoptext
In the latest version 2021-06-24 of ConTeXt LMTX
Hi,
Consider the MWE:
\definetextbackground[background][
background=color,
backgroundcolor=gray]
\starttext
\starttextbackground[background]
Test
\stoptextbackground
\stoptext
In the latest version 2021-06-24 of ConTeXt LMTX, the textbackground is not
working. Could this be a bug or am I
n=XML] and then use \startMytyping
> > > ...
> > > \stopMytyping nothing changes.
> > ???
> >
> > \definetextbackground
> > [Code]
> > [ frame=off,
> > background=color,
> > backgroundcolor=lightgray,
> &
frame=off,
> background=color,
> backgroundcolor=lightgray,
> location=paragraph]
>
> \definetyping
> [Mytyping]
> [option=XML]
>
> \setuptyping
> %[Mytyping]
> [before={\blank\starttextbackground[Code]},
> after={\st
.
???
\definetextbackground
[Code]
[ frame=off,
background=color,
backgroundcolor=lightgray,
location=paragraph]
\definetyping
[Mytyping]
[option=XML]
\setuptyping
%[Mytyping]
[before={\blank\starttextbackground[Code]},
after={\stoptextbackground\blank}]
\starttext
t; > > > > > > these
> > > > > > > and
> > > > > > > a
> > > > > > > sidebar. No addition spacing / empty lines.
> > > > > > A MWE will help...
> > > > > >
> > > >
t; > > > a
> > > > > > sidebar. No addition spacing / empty lines.
> > > > > A MWE will help...
> > > > >
> > > > > Aditya
> > > > For example, take:
> > > >
> > > > \definetextba
? I just want a background to these
and
a
sidebar. No addition spacing / empty lines.
A MWE will help...
Aditya
For example, take:
\definetextbackground[code][background=color, backgroundcolor=lightgray,
frame=off, location=paragraph]
\starttextbackground[code]
\starttyping
This is some code
, take:
> >
> > \definetextbackground[code][background=color, backgroundcolor=lightgray,
> > frame=off, location=paragraph]
> >
> > \starttextbackground[code]
> > \starttyping
> > This is some code
> > a second line
> > \stoptyping
> > \st
...
Aditya
For example, take:
\definetextbackground[code][background=color, backgroundcolor=lightgray,
frame=off, location=paragraph]
\starttextbackground[code]
\starttyping
This is some code
a second line
\stoptyping
\stoptextbackground
You missed the W (working) in MWE.
\definetextbackground
> > > sidebar. No addition spacing / empty lines.
> >
> > A MWE will help...
> >
> > Aditya
>
> For example, take:
>
> \definetextbackground[code][background=color, backgroundcolor=lightgray,
> frame=off, location=paragraph]
>
>
> Aditya
For example, take:
\definetextbackground[code][background=color, backgroundcolor=lightgray,
frame=off, location=paragraph]
\starttextbackground[code]
\starttyping
This is some code
a second line
\st
r (created with \definesidebar) to
them.
However, when I surround for example my typing with a textbackground like this
\starttextbackground[code]
\startCpp
...
\stopCpp
\stoptextbackground
or by putting the textbackground commands in "before=" and "after=" of my
typing, then there wi
neenumeration[Theorem][before={\startsidebar[Theorem]},after=\stopsidebar
> ]
>
> Massi
Thank you very much. Now I understand why it happens. The `after` gets called
after the end of the paragraph.
Unfortunately,
[before=\dontleavehmode\startsidebar, after=\stopsidebar\par]
doesn't work, it do
,
background=color,
backgroundcolor=white,
]
%%%
\defineenumeration[proclaim]
[text=,
before={\starttextbackground[leftbartext]},
after={\stoptextbackground},
style=slanted,
title=yes,
titleleft=,
titleright
,
frame=off,
location=always,
]
\showframe
\starttext
\starttextbackground[fondpaille]
\startplacefigure[number=no,location=right]
\externalfigure[dummy]
\stopplacefigure
\startitemize[n]
\dorecurse{3}{\startitem \input ward
tbackground[fondpaille]
> [background=color,
> backgroundcolor=fondpaille,
> frame=off,
> location=always]
>
> \starttext
>
> \starttextbackground[fondpaille]
> \startplacefigure[number=no,location=right]
> \externalfigure[dummy]
&
Wolfgang suggests is something like the following:
>
> \useMPlibrary[dum]
> \definecolor[fondpaille][c=0,m=0,y=0.2,k=0]
> \definetextbackground[fondpaille]
> [background=color,
> backgroundcolor=fondpaille,
> frame=off,
> location=always]
>
&
\starttextbackground[fondpaille]
\startplacefigure[number=no,location=right]
\externalfigure[dummy]
\stopplacefigure
\startitemize[n]
\dorecurse{3}{\startitem \input ward \stopitem}
\stopitemize
\stoptextbackground
\stoptext
Best regards
.
\definetextbackground [DisplayBackground] [location=paragraph]
\definetextbackground [InlineBackground] [location=text]
\starttext
X\offset[x=1em]{\starttextbackground[InlineBackground]Text\stoptextbackground}
X\offset[x=1em]{\vtop{\starttextbackground[DisplayBackground]Text\crlf
Text\stoptextbackground
lmtx without any problem.
>>>
>>> Thanks in advance for any help,
>>> Best regards: OK
>> you have some interaction between textrules and backgrounds (and that can be
>> a matter of very small differences in dimensions and rounding and such .. i
>> just don't
and such .. i just don't see a quick way out) ... esp these
backgrounds are an old mechanism (maybe i should alias it to
textbackgrounds in lmtx)
much better is to use this:
\definetextbackground
[xx]
[location=paragraph]
\starttextbackground[xx]
\stoptextbackground
can you try to use
see a quick way out) ... esp these backgrounds are
an old mechanism (maybe i should alias it to textbackgrounds in lmtx)
much better is to use this:
\definetextbackground
[xx]
[location=paragraph]
\starttextbackground[xx]
\stoptextbackground
can you try to use that instead? less page
re]
> \setupfloat[thematicimage]
> [default=right,none},
> offset=1em,
> margin=0em,
> background=color,
> backgroundcolor=cyan,
> rightmargindistance=-1em]
>
> \starttext
>
> \starttextbackground[TintBoxed
,
margin=0em,
background=color,
backgroundcolor=cyan,
rightmargindistance=-1em]
\starttext
\starttextbackground[TintBoxedBackground]
{\bf Lorem ipsum dolor sit amet}\blank
\placethematicimage{}{\externalfigure[cow][width=0.30\makeupwidth]} Lorem
ipsum dolor sit
poffset=10pt,
> leftoffset=10pt,
> location=paragraph,
> frame=on]
>
> \startsetups [xml:setups:start]
> \starttextbackground [SetupsParameter]
> \stopsetups
>
> \startsetups [xml:setups:stop]
> \stoptextbackground
> \stopsetups
>
> \starttext
>
> \start
=paragraph,
frame=on]
\startsetups [xml:setups:start]
\starttextbackground [SetupsParameter]
\stopsetups
\startsetups [xml:setups:stop]
\stoptextbackground
\stopsetups
\starttext
\startsection[title={Short Version of the Command}]
\cmdshortsetup [setupframed]
\cmdshortsetup
(decimal i, ulcorner multipars[i]) withcolor red ;
endfor ;
\stopuseMPgraphic
\definetextbackground
[PageFrame]
[mp=pageframe,
location=paragraph]
\starttext
\samplefile{knuth}
\starttextbackground[PageFrame]
\samplefile{knuth}
\stoptextbackground
\samplefile{knuth
=pageframe,
location=paragraph]
\starttext
\samplefile{knuth}
\starttextbackground[PageFrame]
\samplefile{knuth}
\stoptextbackground
\samplefile{knuth}
\starttextbackground[PageFrame]
\samplefile{knuth}
\samplefile{knuth}
\samplefile{knuth}
\stoptextbackground
\stoptext
test.pdf
Description
mail-archive.com/ntg-context%40ntg.nl/msg78014.html
> %width=broad,
> %corner=round,
> %radius=5ex,
> leftoffset=10pt,rightoffset=10pt,
> topoffset=10pt,bottomoffset=10pt
> %offset=-5pt
> ]
>
> \definestartstop[teoria][
,bottomoffset=10pt
%offset=-5pt
]
\definestartstop[teoria][before={\begingroup\blank[big]\testpage[2]\starttextbackground[bteoria]},after={\stoptextbackground\blank[big]\endgroup}]
\starttext
\startteoria
\input tufte
\placetable[force,none][taula:teoria:1]{Recopilació de dades. Conceptes
A minimal:
>
> \defineparagraphs [TestPar][n=2, distance=7mm]
> \setupparagraphs [TestPar][1][width=2em]
>
> \definetextbackground [CB][
> location=paragraph,
> backgroundcolor=gray,
> leftoffset=.3em,
> rightoffset=.3em,
> topoffset=.3em,
> bottomoffset=.
]
\definetextbackground [CB][
location=paragraph,
backgroundcolor=gray,
leftoffset=.3em,
rightoffset=.3em,
topoffset=.3em,
bottomoffset=.3em,
frame=off
]
\starttext
\starttextbackground [CB]
\dorecurse {40} {a b c }
\stoptextbackground
text
\starttextbackground [CB]
\startTestPar
img
\TestPar
\dorecurse {40
le[vim]
\definevimtyping
[python]
[syntax=python,
escape=on,
before={\starttextbackground[verbatim]},
after={\stoptextbackground}]
\setuptyping
[before={\starttextbackground[verbatim]},
after={\stoptextbackground}]
\starttext
\starttyping[escape=yes]
# Returns /BTEX\m{\sum_{i=1}
> Am 15.07.2017 um 21:55 schrieb Hans Hagen <pra...@wxs.nl>:
>
> On 7/15/2017 9:11 PM, Alan Braslau wrote:
>> On Wed, 12 Jul 2017 19:05:26 +0200
>> Hans Hagen <pra...@wxs.nl> wrote:
>>> best play with textbackgrounds
>>>
>>> \sta
On 7/15/2017 9:11 PM, Alan Braslau wrote:
On Wed, 12 Jul 2017 19:05:26 +0200
Hans Hagen <pra...@wxs.nl> wrote:
best play with textbackgrounds
\starttext
\starttextbackground
\dorecurse{10}{test\footnote{tufte}: \input tufte\par}
\stoptextbackground
\stoptext
I have found the fol
On Wed, 12 Jul 2017 19:05:26 +0200
Hans Hagen <pra...@wxs.nl> wrote:
> best play with textbackgrounds
>
> \starttext
>
> \starttextbackground
> \dorecurse{10}{test\footnote{tufte}: \input tufte\par}
> \stoptextbackground
>
> \stoptext
>
I have found the
>
>>\automigrateinserts
>>\setuptextbackground[location=paragraph]
>>\starttext
>>\dorecurse{10}{\starttextbackground
>>test\footnote{tufte}: \input knuth\hfill
>>\stoptextbackground\blank}
>>\stoptext
>
> What can be done that th
ext page and footnotes had been at the
first page of the theorem. So things worked fine.
>
> Just in case I got you wrong: is your issue that the background also
> covers the footnotes, such as in the first and second pages from:
>
>\automigrateinserts
>\setuptextb
econd pages from:
\automigrateinserts
\setuptextbackground[location=paragraph]
\starttext
\dorecurse{10}{\starttextbackground
test\footnote{tufte}: \input knuth\hfill
\stoptextbackground\blank}
\stoptext
Just in ca
best play with textbackgrounds
\starttext
\starttextbackground
\dorecurse{10}{test\footnote{tufte}: \input tufte\par}
\stoptextbackground
\stoptext
-
Hans Hagen | PRAGMA ADE
margin]{}{}
\starttextbackground [test]
\dorecurse{3}{\readfile{ward}{}{}}
\stoptextbackground
\stoptext
With the ConTeXt Current from 2016.05.19 13:43 I don’t see the issue,
everything’s fine there.
Here are two screenshots:
Desired behavior (Ctx Current): http://d.pr/i/Xgtc
Non-desired behavio
rgin=0mm,
>> rightmargin=45mm,
>> height=fit,
>> width=fit,
>> ]
>>
>> \definetextbackground [test]
>>
>> \starttext
>>
>> \placefigure [margin]{}{}
>>
>> \starttextbackground [test]
>> \dorecurse{3}{\readfile{ward}{}{}}
>
for the entire height of the margin picture.
Here is a minimal:
\setuplayout [
leftmargin=0mm,
rightmargin=45mm,
height=fit,
width=fit,
]
\definetextbackground [test]
\starttext
\placefigure [margin]{}{}
\starttextbackground [test]
\dorecurse{3}{\readfile{ward}{}{}}
\stoptextbackground
picture.
Here is a minimal:
\setuplayout [
leftmargin=0mm,
rightmargin=45mm,
height=fit,
width=fit,
]
\definetextbackground [test]
\starttext
\placefigure [margin]{}{}
\starttextbackground [test]
\dorecurse{3}{\readfile{ward}{}{}}
\stoptextbackground
\stoptext
With the ConTeXt Current
,
frame=off,
location=text,
color=blue]
\starttext
\starttextbackground[intro]
A rather common way to draw attention to a passage, is to add
a background. In this chapter we will therefore discuss how
to enhance your document
,
location=text,
color=blue]
\starttext
\starttextbackground[intro]
A rather common way to draw attention to a passage, is to add
a background. In this chapter we will therefore discuss how
to enhance your document with \starttextbackground [subintro]
colorful areas that either
][
frame=off,
location=paragraph,
background=color,
backgroundcolor=yellow]
\setuptyping[typing][
%option=color,
before={\starttextbackground[code]},
after=\stoptextbackground]
\starttext
\startplacefigure[location=bottom]
\externalfigure[cow][width=0.5\textwidth
[nl]
\setnewconstant\kindofpagetextareas 1 % low level, no high level switch
(yet)
\starttext
\starttextbackground[en]
\dorecurse{10}{\input tufte \footnote{tufte} \par}
\stoptextbackground
\starttextbackground[nl]
\dorecurse{10}{\input tufte \footnote{tufte} \par
\par
\starttextbackground[bg]
\input knuth
\stoptextbackground \par
After
\stopframedtext
\input tufte \par
\starttextbackground[bg]
\dorecurse{2}{\input knuth \par}
\stoptextbackground
\input tufte
\stoptext
Any feedback is welcome,
Regards,
Christoph
: location=text
\definehead [Framed][chapter]
\definehead [Frameless] [chapter]
\setuphead
[Frameless]
[before={\blank[2*line]}]
\setuphead
[Framed]
[page=no,
before=,
beforesection={\page\blank[2*line]\starttextbackground[ChapterFrame]},
aftersection=\stoptextbackground
=,
beforesection={\noindentation\page\starttextbackground[SummaryBackground]},
aftersection={\stoptextbackground\blank}]
\setuphead[section][number=no,style=bold]
\definecombinedlist[content][section,summary]
\setupcombinedlist[content][level=4, alternative=c]
\starttext
\completecontent
\page
]
[before={\blank[2*line]}]
\setuphead
[Framed]
[page=no,
before=,
beforesection={\page\blank[2*line]\starttextbackground[ChapterFrame]},
aftersection=\stoptextbackground]
\starttext
\startnamedsection[Frameless][title=Chapter without frame]
\input knuth
\stopnamedsection
=,alternative=text,indentnext=no]
\setuphead[summary][number=no,style=bold,before=,after={\blank[sprong]},beforesection={\noindentation\page\starttextbackground[SummaryBackground]},aftersection={\stoptextbackground\page}]
\setupwhitespace[none]
\setupindenting[yes, small, next]
\definetextbackground
]},after=,indentnext=no]
\setuphead[summary][number=no,style=bold,before=,after={\blank[sprong]},beforesection={\noindentation\page\starttextbackground[SummaryBackground]},aftersection={\stoptextbackground\page}]
\setupwhitespace[none]
\setupindenting[yes, small, next]
\definetextbackground
\starttextbackground[SummaryBackground]},
aftersection={\stoptextbackground\blank}]
\starttext
\startsection[title=Knuth]
\input{knuth}
\stopsection
\startsummary[title=Zapf]
\input{zapf}
\stopsummary
\stoptext
\starttextbackground[SummaryBackground]},
aftersection={\stoptextbackground\blank}]
\starttext
\startsection[title=Knuth]
\input{knuth}
\stopsection
\startsummary[title=Zapf]
\input{zapf}
\stopsummary
\stoptext
Wolfgang
Hello Wolfgang,
Your example works. After
={\noindentation\page\starttextbackground[SummaryBackground]},
aftersection={\stoptextbackground\blank}]
\setuphead[section][number=no,style=bold]
\definecombinedlist[content][section,summary]
\setupcombinedlist[content][level=4, alternative=c]
\starttext
\completecontent
\page
\dorecurse{9
]
[frame=off,offset=none,frameoffset=0pt,
background=color,
backgroundcolor=gray,
backgroundoffset=2ex]
\definehead[summary][section]
\setuphead
[summary]
[number=no,
style=bold,
before=,
beforesection={\noindentation\page\starttextbackground[SummaryBackground]},
aftersection
Use text backgrounds.
\definetextbackground
[SummaryBackground]
[frame=off,
background=color,
backgroundcolor=gray]
\definehead[summary][section]
\setuphead
[summary]
[before=,
beforesection={\blank\starttextbackground[SummaryBackground]},
aftersection
=on]
\startitemize[n,2*broad]
\item Here is my first item
\starttextbackground[foo]
Here is some long text that demonstrates how the
background color is wrong on the second line and all successive lines of
this paragraph.
\stoptextbackground
]
\definetextbackground[foo][
state=start,
location=paragraph,
background=color,
backgroundcolor={0.875,0.875,0.875},
frame=off
]
\starttext
\startcolumns[n=2,rule=on]
\startitemize[n,2*broad]
\item Here is my first item
\starttextbackground[foo
, backgroundoffset=5pt,
framecorner=round, radius=5ex, frameoffset=5pt]},
after=\stopbackground
]
and I want an equivalent one with starttextbackground.
I try this:
\definetextbackground[provateoria]
[background=color, backgroundcolor=mteoria, location=paragraph,
frame=on, width
Thanks Aditya.
What's the difference between startbackground and starttextbackground? I can't
see the options of textbackground.
Thanks,
___
If your question is of interest to others as well, please add an entry
] %
[location=text,alternative=1,background=,frame=off] %
\definestartstop %
[underline] %
[before={\starttextbackground[underline
Hi,
I need different settings for code in inline and block mode. See the
following example:
\usemodule [vim]
\definetextbackground [C] [location=text]
\definevimtyping [C]
[syntax=c,
before={\starttextbackground[C]},
after=\stoptextbackground,
margin=2em]
\starttext
This is C
Am 16.01.2013 um 15:51 schrieb Marco Patzer home...@lavabit.com:
Hi,
I need different settings for code in inline and block mode. See the
following example:
\usemodule [vim]
\definetextbackground [C] [location=text]
\definevimtyping [C]
[syntax=c,
before={\starttextbackground[C
]
\starttextbackground[text]
\setuptab[headstyle={\switchtobodyfont[SansB,\SansBsize]},width=20mm,location=left]
\startcolumnset[abbcolumn] \startalignment[flushleft,nothyphenated]},
after={\stopalignment \stopcolumnset \stoptextbackground
\setupbackgrounds[text][background=off]}]
From that, one might guess
={\setupbackgrounds[text][background=verticalline]
\starttextbackground[text]
\setuptab[headstyle={\switchtobodyfont[SansB,\SansBsize]},width=20mm,location=left]
\startcolumnset[abbcolumn] \startalignment[flushleft,nothyphenated]},
after={\stopalignment \stopcolumnset \stoptextbackground
\setupbackgrounds
[text][background=verticalline]
// \starttextbackground[text]
//
\setuptab[headstyle={\switchtobodyfont[SansB,\SansBsize]},width=20mm,location=left]
// \startcolumnset[abbcolumn] \startalignment[flushleft,nothyphenated]},
// after={\stopalignment \stopcolumnset \stoptextbackground
// \definestartstop
//[abblist]
//[before={\setupbackgrounds[text][background=verticalline]
// \starttextbackground[text]
//
\setuptab[headstyle={\switchtobodyfont[SansB,\SansBsize]},width=20mm,location=left]
// \startcolumnset[abbcolumn] \startalignment[flushleft,nothyphenated
,
%leftoffset=1cm,
topoffset=5mm]
\definevimtyping [C]
[syntax=c,
before={\starttextbackground[code]},
after=\stoptextbackground]
\setuptyping [typing]
[margin=1cm,
before={\starttextbackground[code]},
after=\stoptextbackground]
\starttext
\startC
/* This MEMB() definition
Hi,
two table mechanisms now have the textwidth (max available width) set to
local which makes it work inside for instance text backgrounds
\starttext
\starttextbackground
\input ward
\bTABLE % [textwidth=local]
\bTR
\bTD \input ward \eTD
\bTD \input
...
\stopTimelineGeneralDocument
So I'm not really sure what I am suppose to do with
\starttextbackground?
apart from a funny corner at least it helps if the colors are defined
\definecolor[colour_page][red]
\definecolor[colour_text][green
On Fri, 2012-02-24 at 05:34 +0100, Wolfgang Schuster wrote:
You should make a minimal example with \starttextbackground which produces
the same error as your document.
As a minimal, it seems to work. But as part of my book, it bails with
the following:
graphics invalid region for 'tbg
Am 24.02.2012 um 01:12 schrieb Kip Warner:
On Wed, 2012-02-22 at 22:21 +0100, Wolfgang Schuster wrote:
\starttextbackground
Wolfgang
I have the following defined in my environment:
\definetextbackground[TimelineGeneralDocument][
location=paragraph,
color=color_text
Am 22.02.2012 um 22:17 schrieb Kip Warner:
On Wed, 2012-02-22 at 22:08 +0100, Wolfgang Schuster wrote:
Check text backgrounds in your document, Hans made a few changes in the code
to make it faster.
Any suggestions on what I should look for? Thanks.
\starttextbackground
Wolfgang
test \starttextbackground[b] \input ward
\parshape 5
5cm 8cm
4cm 8cm
3cm 8cm
2cm 8cm
1cm 8cm
\input ward
\input ward
\input ward \stoptextbackground{} test
\stoptext
, the region key is a new one in framed
so anything that can be framed can also have fancy text backgrounds.
Yet another improvement is that (although rather untested) you can do
things like
\starttextbackground[r] START
\dorecurse{10}{
\dorecurse{1}{\input ward
results. Actually, the region key is a new one in framed so anything that can
be framed can also have fancy text backgrounds.
Yet another improvement is that (although rather untested) you can do things
like
\starttextbackground[r] START
\dorecurse{10}{
\dorecurse{1}{\input ward
backgrounds.
Yet another improvement is that (although rather untested) you can do things
like
\starttextbackground[r] START
\dorecurse{10}{
\dorecurse{1}{\input ward }
\placefigure[right]{}{}
some text before BEGIN \dorecurse{2}{\input ward } END some after
background looks weird even after.
·
\definetextbackground[tb]
\setuptyping[
after={\stoptextbackground},
before={\starttextbackground[tb]},
]
\starttext
foo
\starttyping
bar
\stoptyping
baz
\starttabulate[|r|l|]
\NC foo \NC
this exact series of
macros causes the issue. Please have a look at it anyways because
the text background looks weird even after.
·
\definetextbackground[tb]
\setuptyping[
after={\stoptextbackground},
before={\starttextbackground[tb
of
macros causes the issue. Please have a look at it anyways because
the text background looks weird even after.
·
\definetextbackground[tb]
\setuptyping[
after={\stoptextbackground},
before={\starttextbackground[tb]},
]
add
:
·
\definetextbackground[verbatim] [
background=color,
backgroundcolor=green,
location=paragraph,
]
\starttext
\placefigure[2*hang,left]{}{test} %%% comment me
\input knuth
\starttextbackground[verbatim]
foo bar
\stoptextbackground
\placefigure[here]{}{test} %%% comment me
\stoptext
]
\starttext
\startitemize
\starttextbackground[testA]
\item \input tufte
\stoptextbackground
\stopitemize
\stoptext
(/Users/hans/TeX/context/tex/texmf-context/tex/context/sample/tufte.tex)
! Extra }, or forgotten \endgroup.
system tex error on line 15 in file textbackground.tex: Extra }, or
forgotten
, no \framedtext appears (thee rsult
is the same when \framedtext is before textbackground).
The example is:
\starttext
\definetextbackground[test][backgroundcolor=lightgray]
\starttextbackground[test]
\input ward
\input ward
\stoptextbackground
\startframedtext
\input knuth
\stopframedtext
it
follows \startbackground …. \stopbackground, no \framedtext appears (thee rsult
is the same when \framedtext is before textbackground).
The example is:
\starttext
\definetextbackground[test][backgroundcolor=lightgray]
\starttextbackground[test]
\input ward
\input ward
\stoptextbackground
1 - 100 of 224 matches
Mail list logo